package com.hqyj.onlineExamination.modules.exam.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.onlineExamination.modules.common.entity.ResultEntity;
import com.hqyj.onlineExamination.modules.common.entity.SearchBean;
import com.hqyj.onlineExamination.modules.exam.entity.Achievement;
import com.hqyj.onlineExamination.modules.exam.entity.Approval;

import javax.servlet.http.HttpServletRequest;

public interface ApprovalService {
    ResultEntity<Approval> insertApproval(Integer paperId, HttpServletRequest request);

    ResultEntity<Approval> getApprovals(HttpServletRequest request);

    PageInfo<Approval> getApprovalsBySearchBean(SearchBean searchBean);

    PageInfo<Achievement> getGradesBySearchBean(SearchBean searchBean, HttpServletRequest request);

    ResultEntity<Approval> updateApprovalById(Approval approval);
}
